import api from './index';

export const getOption = () => {
    return api.get('/script/options');
};
export const getConfig=(optionName)=>{
    return api.get('/script/config/'+optionName)
}
export const updateConfig=(scriptValue, scriptName, scriptKey)=>{
return api.post('/script/config',{scriptValue, scriptName, scriptKey})
}